Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save log index #1027

Merged
merged 8 commits into from
Apr 29, 2022
Merged

Save log index #1027

merged 8 commits into from
Apr 29, 2022

Conversation

vponline
Copy link
Contributor

This adds request sorting by logIndex.

@vponline vponline self-assigned this Apr 25, 2022
@vponline vponline requested a review from a team April 25, 2022 11:04
// 2. Transaction hash (ascending)
return orderBy(requests, ['metadata.blockNumber', 'metadata.transactionHash']);
// 2. Log index (ascending)
// 3. Transaction hash (ascending)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need transaction hash now, do we?

Copy link
Contributor

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

Copy link
Member

@andreogle andreogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logIndex seems a lot better than transactionHash for ordering 😅

@vponline vponline merged commit 58b41f5 into master Apr 29, 2022
@vponline vponline deleted the save-log-index branch April 29, 2022 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants